#pragma once

#define TEST_WKE_WND_CLASS   L"TestWkeWndClass"
#define WKE_GPID             ((WCHAR*)31117)

#include "resource.h"


class CMainFrame{
public:
	CMainFrame( HINSTANCE hInstance, int nCmdShow );

	void GoHome();

	void UpdateControlPosition(){
		RECT rc;
		::GetClientRect( m_hWnd, &rc );
		::MoveWindow( (HWND)wkeGetHostWindow(m_hWebkit), rc.left, rc.top, rc.right, rc.bottom, TRUE );
	}

	wkeWebView* Webkit()  { return m_hWebkit; }
	HWND        getHwnd() { return m_hWnd; }
private:
	HWND            m_hWnd;
	wkeWebView*     m_hWebkit;
};


